import { createRouter, createWebHistory } from 'vue-router'
import IndexPage from '../pages/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'index',
      component: IndexPage,
    },
    {
      path: '/utils',
      name: 'utils',
      component: () => import('../pages/utils.vue'),
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../pages/about.vue'),
    },
  ],
})

export default router
